<meta http-equiv="Content-Type" content="text/html;charset=utf8">
<meta name="description" content="untitle">
<div id="goods-stock" style="font-size:12px;">
	<?php foreach($goods as $g): ?>
		<div class="each" style="float:left;clear:both;border-bottom:1px solid #999;margin:5px 0;">
			<div class="main-goods" style="float:left;">
				<div class="image"><img style="width:50px;height:50px" src="<?php echo $g['main_goods']->taobao_info->image; ?>" /></div>
				<div class="number"><?php echo $g['main_goods']->number; ?></div>
				<div class="number"><?php echo $g['main_goods']->search_code; ?></div>
			</div>
			<div class="sub-goods" style="float:left;">
				<?php foreach($g['sub_goods'] as $sg): ?>
				<div class="each-sub" style="clear:both">
					<div class="attribute" style="width:10em;float:left;"><?php echo $sg->attribute ?></div>
					<div class="stock" style="width:10em;float:left;"><?php echo $sg->stock ?></div>
					<div class="stock_unkown" style="width:10em;float:left;"><?php echo $sg->stock_unkown ?></div>
				</div>
				<?php endforeach ?>
			</div>
			<div style="clear:both"></div>
		</div>
	<?php endforeach ?>
</div>